home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows Game Programming for Dummies (2nd Edition)
/
WinGamProgFD.iso
/
mac
/
DirectX SDK
/
DXSDK
/
samples
/
Multimedia
/
Direct3D
/
Water
/
CEnvironment.h
< prev
next >
Wrap
C/C++ Source or Header
|
2001-10-08
|
821b
|
38 lines
//
// CEnvironment
// Copyright (c) 2000-2001 Microsoft Corporation. All rights reserved.
//
#pragma once
#ifndef __CENVIRONMENT_H__
#define __CENVIRONMENT_H__
class CEnvironment
{
public:
CEnvironment();
~CEnvironment();
HRESULT Initialize(float fSize);
HRESULT OnCreateDevice(IDirect3DDevice8* pDevice);
HRESULT OnResetDevice();
HRESULT OnLostDevice();
HRESULT OnDestroyDevice();
HRESULT SetSurfaces(
IDirect3DTexture8* pXNeg, IDirect3DTexture8* pXPos,
IDirect3DTexture8* pYNeg, IDirect3DTexture8* pYPos,
IDirect3DTexture8* pZNeg, IDirect3DTexture8* pZPos);
HRESULT Draw();
protected:
float m_fSize;
IDirect3DDevice8* m_pDevice;
IDirect3DTexture8* m_pSurf[6];
};
#endif // __CENVIRONMENT_H__